Skip to content

Auth: Magic link migrations - #83

Open
RandyJDean wants to merge 1 commit into
mainfrom
08-17-auth_magic_link_migrations
Open

Auth: Magic link migrations#83
RandyJDean wants to merge 1 commit into
mainfrom
08-17-auth_magic_link_migrations

Conversation

@RandyJDean

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sonarqubecloud

Copy link
Copy Markdown

@RandyJDean
RandyJDean marked this pull request as ready for review August 17, 2026 22:25
@RandyJDean
RandyJDean requested a review from a team August 17, 2026 22:25
@graphite-app

graphite-app Bot commented Aug 17, 2026

Copy link
Copy Markdown

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (08/17/26)

2 reviewers were added to this PR based on Henry Chen's automation.

id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
email TEXT NOT NULL,
token_hash TEXT UNIQUE NOT NULL,
expires_at TIMESTAMPTZ NOT NULL,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any logic to delete these anywhere? Doesn't have to be now but having a bunch of single use tokens clogging the DB is not ideal.

May also be helpful to have expiry be an index as well so we can easily have some cleanup job that runs on however many expired tokens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants